import { BehaviorSubject, Subject, map, zip } from "rxjs";

const count = new BehaviorSubject(0);
const doubleCount = count.pipe(map((value) => value * 2));

const count2 = new Subject();
count2.next(1);

doubleCount.subscribe((value) => {
  console.log("doubleCount:", value);
});

count.next(10);
